<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateMiniProgramModuleSettingsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('mini_program_module_settings', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->string('module_name')->nullable()->comment('模块');
            $table->string('display_name')->nullable()->comment('模块名称');
            $table->string('show_title')->nullable()->comment('小程序端显示标题');
            $table->string('pic')->nullable()->comment('模块显示图片');
            $table->boolean('is_show')->default(1)->comment('是否显示');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('mini_program_module_settings');
    }
}
